﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 过站数据记录
    /// </summary>
	[Table("PassStationRecord")]

    [Display(Name = "_Model.PassStationRecord")]
    public class PassStationRecord : BasePoco
    {
        [Display(Name = "_Model._PassStationRecord._lineCode")]
        [Comment("产线编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._materialCode")]
        [Comment("物料编码")]
        public string MaterialCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._materialName")]
        [Comment("物料名称")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._PassStationRecord._materialVersion")]
        [Comment("物料版本")]
        public string MaterialVersion { get; set; }
        [Display(Name = "_Model._PassStationRecord._operationCode")]
        [Comment("工序编码")]
        public string OperationCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._orderCode")]
        [Comment("工单编码")]
        public string OrderCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._passBeginTime")]
        [Comment("进站时间")]
        public string PassBeginTime { get; set; }
        [Display(Name = "_Model._PassStationRecord._passEndTime")]
        [Comment("出站时间")]
        public string PassEndTime { get; set; }
        [Display(Name = "_Model._PassStationRecord._passStatus")]
        [Comment("过站状态")]
        public string PassStatus { get; set; }
        [Display(Name = "_Model._PassStationRecord._scheduleCode")]
        [Comment("排程编号")]
        public string ScheduleCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._snNumber")]
        [Comment("SN")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string SnNumber { get; set; }
        [Display(Name = "_Model._PassStationRecord._stationCode")]
        [Comment("工位编号")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._shipCode")]
        [Comment("出货条码")]
        public string ShipCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._machineCode")]
        [Comment("设备号")]
        public string MachineCode { get; set; }
        [Display(Name = "_Model._PassStationRecord._uploadflag")]
        [Comment("上传工厂mes标志")]
        public bool? Uploadflag { get; set; }
        [Display(Name = "_Model._PassStationRecord._userId")]
        [Comment("userId")]
        public string UserId { get; set; }
        [Display(Name = "_Model._PassStationRecord._userName")]
        [Comment("userName")]
        public string UserName { get; set; }
        [Display(Name = "_Model._PassStationRecord._isProduct")]
        [Comment("出货标识")]
        public string IsProduct { get; set; }
        [Display(Name = "_Model._PassStationRecord._reqType")]
        [Comment("进出站标识")]
        public string ReqType { get; set; }

        [Comment("人工确认结果")]
        public string Manual_Check { get; set; }        

    }

}
